<!DOCTYPE html>
<html>
<head>
    <title>聚合搜索-小免影视</title>
    <link href="__PUBLIC__/Index/index/css/style.css" rel='stylesheet' type='text/css'/>
    <link href="//ywh.yr2mcdn.nqvqn.com/admin_home_list/favicon.png" rel="icon">
    <meta name="viewport" content="width=device-width, initial-scale=1">
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>

    <script type="application/x-javascript"> addEventListener("load", function () {
        setTimeout(hideURLbar, 0);
    }, false);

    function hideURLbar() {
        window.scrollTo(0, 1);
    } </script>
    <script src="https://cdn.staticfile.org/jquery/3.3.1/jquery.min.js"></script>
</head>
<body>
<!--start-main-->
<div class="submit-forms">

    <form class="green" action="{:U('index')}" method="post" name="search" onsubmit="encrypt()">
        <input id="keyword" type="text" size="30px" name="key" value="请输入的影视名称，尽量不要带数字、第几季和标点符号"
               onfocus="this.value = '';" onblur="if (this.value == '') {this.value = '请输入的影视名称，尽量不要带数字、第几季和标点符号';}">
        <input type="submit" value="搜索">
    </form>

</div>

<!--start-copyright-->
<div class="copy-right">
    <div><h1>热门搜索：</h1></div>
    <div class="wrap basis-white">

        <p>
            <br />
            <foreach name="search_list" item="data" key="id">
                <a class="tab">{$data.keyword}</a>&nbsp;&nbsp;
            </foreach>
        </p>
        <p><br />免会员看电视电影，搜索结果转存网盘，然后在网盘在线观看即可</p>
    </div>
</div>
<!--//end-copyright-->

</body>
</html>
<style>
.basis-white{
    color: rgba(255,255,255,0.96);
}
</style>
<script>

    function encrypt() {
        // 编码后再传给后端
        document.getElementById('keyword').value = encodeURIComponent(document.getElementById('keyword').value)
    }

    $(".tab").click(function () {
        const a = $(this).html()
        $("#keyword").val(a)
        $("form[name='search']").submit()
    })
</script>
